﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Steve.UI.Administration.Resources;

namespace Steve.UI.Administration.Models
{
    public sealed class NewContentDetailModel : NewRevisedObjectModel
    {
        public string ContentTypeName { get; set; }

        [StringLength(4000)]
        [DataType(DataType.MultilineText)]
        public string Teaser { get; set; }

        [Display(ResourceType = typeof(CommonResources), Name = "Content_Path_Name", Description = "Content_Path_Description", GroupName = "Basic_GroupName")]
        [StringLength(255)]
        [RegularExpression(RegexPatterns.ContentPath)]
        public string Path { get; set; }

        [Display(ResourceType = typeof(CommonResources), Name = "Content_Title_Name", Description = "Content_Title_Description", GroupName = "Basic_GroupName")]
        [StringLength(200)]
        public string Title { get; set; }

        [DataType("CategoryList")]
        [Display(ResourceType = typeof(CommonResources), Name = "Content_Categories_Name", Description = "Content_Categories_Description", GroupName = "Basic_GroupName")]
        public string Categories { get; set; }

        [DataType("SiteUrl")]
        public Guid? SiteUrlId { get; set; }
    }
}
